<?php

class Front_Form_Connect extends Zend_Form
{

    public function init ()
    {
        $this->setName("connexion");
        $this->setMethod("post");
        $this->setAction("/front/accueil/connexion");
        
        $champ = new Zend_Form_Element_Text("login");
        $champ->setLabel(__("Utilisateur"));
        $champs[] = $champ;
        
        $champ = new Zend_Form_Element_Password("mdp");
        $champ->setLabel(__("Mot de passe"));
        $champs[] = $champ;
        
        $champ = new Jnd_Form_Element_Submit("connexion");
        $champ->setValue(__("Se connecter"));
        $champ->setAttribs(
                array(
                        "style" => "float: left;",
                        "src" => "/images/connexion.png"
                ));
        $champs[] = $champ;
        
        $this->addElements($champs);
    }
}

